<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title lang>编辑商品</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../../css/style.css" />
		<link rel="stylesheet" href="../../../css/title.css" />
		<style type="text/css">
			.mui-content{margin:20px 0 0 10px;}
			label{color:#fff;line-height: 2;font-size:14px;}
			.mar10{margin-top:10px;}
			.goods #textarea{width:70%;background-color:#333;color:#fff;font-size:13px;}
			.goods-img{margin-top:10px;}
			.goods-img span{color:#999;overflow:hidden;line-height:30px;width:50%;height:30px;font-size:10px; background-color:#333;}
			.goods-img button{width:18%;background:-webkit-linear-gradient(top,#fbed21,#fab538);color:#000;float:right;font-size:12px;border:none;padding:0px 5px;float: left;margin-left:5px;height:26px;line-height:26px;padding:0px;}
			.add-img{margin-left:70px;}
			.add-img span{color:rgb(255,240,0);font-size:13px;padding-top:10px;}
			.add-img .des-img{margin-top:20px;}
			.add-img .des-img ul li span{position:relative;top:-36px;right:-42px;}
			.goods-price input{width:24%;height:26px;background-color:#333;padding:0px;font-size:12px;color:#fff;}
			.goods-des textarea{padding:5px;background-color:#333;color:#fff;border-radius:none;margin-bottom:5px;border-bottom:1px dashed #999;}
			.goods-des span{color:rgb(255,240,0);font-size:13px;padding:5px;}
			.des-img ul{padding:0px;margin:12px 0 0 -5px;list-style: none;}
			.des-img ul li{float: left;margin-left:-5px;}
			.des-img ul li span{position:relative;top:-40px;right:-54px;}
			.kf-phone input{width:60%;background-color:#333;padding:0px;height:30px;font-size:12px;color:#fff;}
			.mui-button-group{width:98%;padding-right:1%;}
			.mui-button-group button{background:-webkit-linear-gradient(top,#fbed21,#fab538);border:none;height:50px;}
		
		    .goods-img a {
			    width: 18%;
			    background: -webkit-linear-gradient(top,#fbed21,#fab538);
			    color: #000;
			    float: right;
			    font-size: 12px;
			    border: none;
			    padding: 0px 5px;
			    float: left;
			    margin-left: 5px;
			    height: 26px;
			    line-height: 26px;
			    padding: 0px;
			    text-align: center;
			}
			
		</style>
	</head>

	<body>
		<!-- 头部 -->
		<header class="mui-bar mui-bar-nav home_top">
			<h1 class="mui-title"><span lang>编辑商品</span></h1>
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		</header> 
		<div class="mui-content">
			<!--商品名称-->
			<div class="goods">
				<label class="mui-pull-left" lang>商品名称：</label>
				<textarea class="mui-pull-left" id="textarea" rows="1" placeholder="请输入30字符以内的商品名称"></textarea>
			</div>
			<!--商品图片-->
			<!--上传图片大小，根据app运行的速度以及满足图片清晰度的前提下，限定图片的大小-->
			<div class="goods-img">
				<label class="mui-pull-left" lang>商品图片：</label>
				<span class="mui-pull-left" id="upload_original_img" lang>请上传1080px*1080px小于1M的JPG图片</span>
				<a href="#picture" onclick="javascript:document.getElementById('textarea').blur();" lang>本地上传</a>
				<!--<input type="hidden" name="original_img" id="original_img" value=""  /> -->
				<img id="original_img" old-original_img="0" src="" style="width:80px;height:80px;display: none;">
				
			</div>
			
			<!--添加图片-->
			<div style="clear: both;"></div>
			<div class="add-img">
				<a href="#photo_album"><span class="mui-icon mui-icon-plus"><font color="#fff" lang>添加新图片</font><font color="#999" lang>[最多可添加5张图片]</font></span></a>
				<div style="clear: both;"></div>
				<div class="des-img">
						<ul id="goods_images">
							<!--
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="34px" height="34px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="34px" height="34px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="34px" height="34px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="34px" height="34px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="34px" height="34px"/></li>
						   -->
						</ul>
					</div>
			</div>
			<!--商品价格-->
			<div style="clear: both;"></div>
			<div class="goods-price mar10">
				<label lang>商品价格：</label>
				<input type="text" id="shop_price"/>
				<label lang>库存：</label>
				<input type="text" id="store_count"/>
			</div>
			<div class="goods-price mar10">
				<label lang>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：</label>
				<input type="text" id="shipping_price" placeholder="0"/><font color="#FFFFFF">元</font>
			</div>
			<!--商品描述-->
			<!--此处添加图片和上边条件一致-->
			<div class="goods-des">
				<label class="mui-pull-left" lang>商品描述：</label>
				<div style="background:#333;width:70%;float:left;">
					<textarea name="" rows="4"class="mui-pull-left mui-input-clear"placeholder="请输入商品描述" id="goods_remark" lang>
					</textarea>
					
					<a href="#goods_detail" onclick="javascript:document.getElementById('goods_remark').blur();"><span class="mui-icon mui-icon-plus"><font color="#fff">添加新图片</font><font color="#999" style="margin-left:5px;">[定尺寸限宽]</font></span></a>
					<div class="des-img">
						<ul id="goods_detail_img">
							<!--
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="40px" height="40px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="40px" height="40px"/></li>
							<li><span class="mui-icon mui-icon-close"></span><img src="../../../img/logo.png" width="40px" height="40px"/></li>
						   -->
						</ul>
					</div>
				</div>
			</div>
			<!--客服电话-->
			<div style="clear: both;"></div>
			<div class="kf-phone mar10">
				<label lang>客服电话：</label>
				<input type="text" placeholder="请输入服务电话号码" id="service_tel" lang />
			</div>
			<!--确定-->
			<div class="mui-button-group">
				<button class="mui-btn mui-btn-block" id="do_edit">确定</button>
			</div>
		</div>
		
		
		<div id="picture" class="mui-popover mui-popover-action mui-popover-bottom original_img">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#" data-id="xiangce" lang>相册</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="#" data-id="paizao" lang>拍照</a>
				</li>
			</ul>
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#picture"><b lang>取消</b></a>
				</li>
			</ul>
		</div>
		

		<div id="photo_album" class="mui-popover mui-popover-action mui-popover-bottom goods_images">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#" data-id="xiangce" lang>相册</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="#" data-id="paizao" lang>拍照</a>
				</li>
			</ul>
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#picture"><b lang>取消</b></a>
				</li>
			</ul>
		</div>
		
		
		<div id="goods_detail" class="mui-popover mui-popover-action mui-popover-bottom goods_detail">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#" data-id="xiangce" lang>相册</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="#" data-id="paizao" lang>拍照</a>
				</li>
			</ul>
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#picture"><b lang>取消</b></a>
				</li>
			</ul>
		</div>
		
	</body>

	<script src="../../../js/mui.min.js"></script>
	<script src="../../../js/config.js"></script>
	<script src="../../../js/common.js"></script>
	<script src="../../../js/sockjs.js"></script>
	<script src="../../../js/jquery-1.7.2.min.js"></script>
	<script src="../../../resource/store/edit_shop.js"></script>
    <script src="../../../lang/shop.js"></script>
	
</html>